package cn.lj.dto;

import cn.lj.util.AppointStateEnum;

/**
 * @author lj
 * @Description: 图书预约的状态
 * @date 2020-12-05 14:42
 * @QQ 851477108
 */


public class AppointExecution {
    private long bookId;
    //秒杀预约结果状态
    private int state;
    //状态标识
    private String stateInfo;

    public AppointExecution(Long bookId, AppointStateEnum success) {
    }

    public AppointExecution(long bookId, int state, String stateInfo) {
        this.bookId = bookId;
        this.state = state;
        this.stateInfo = stateInfo;
    }

    public long getBookId() {
        return bookId;
    }

    public void setBookId(long bookId) {
        this.bookId = bookId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    @Override
    public String toString() {
        return "AppointExecution{" +
                "bookId=" + bookId +
                ", state=" + state +
                ", stateInfo='" + stateInfo + '\'' +
                '}';
    }
}
